/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.cadi.levelsManager;
import com.cadi.aux.Levels;
import com.cadi.games.SuperDifficultLevel;
import com.cadi.games.SuperEasyLevel;
import com.cadi.games.SuperIntermediateLevel;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import javax.swing.ImageIcon;
import javax.swing.JLabel;
import javax.swing.JLayeredPane;

/**
 *
 * @author ApoZuniga
 */
public class LevelSuper extends Levels{
    private JLabel background;
    public LevelSuper() {
        super();
        easy.addActionListener(new ActionListener() {

            @Override
            public void actionPerformed(ActionEvent ae) {
                SuperEasyLevel levelOne = new SuperEasyLevel();
                window.setVisible(false);
            }
        });
        intermediate.addActionListener(new ActionListener() {

            @Override
            public void actionPerformed(ActionEvent ae) {
                SuperIntermediateLevel levelOne = new SuperIntermediateLevel();
                window.setVisible(false);
            }
        });
        difficult.addActionListener(new ActionListener() {

            @Override
            public void actionPerformed(ActionEvent ae) {
                SuperDifficultLevel levelOne = new SuperDifficultLevel();
                window.setVisible(false);
            }
        });
        extraLevel.setVisible(false);
        background = new JLabel(new ImageIcon(getClass().getResource("/resources/fondo4.png")));
        background.setBounds(0, 0, 1280,800);
        container.add(background, JLayeredPane.PALETTE_LAYER);
        window.setVisible(true);
        voice.play();
    }
    
}
